import { getConfig } from '../../config';
import { ParamToObj } from '../../utils/base';

export default (url) => {
    let routeKey = new RegExp('^[A-Za-z]*://call/([A-Za-z_].+)').exec(url)[1].split('?')[0]
    getConfig().routerCall({ 
        url: url.split('?')[0],
        routeKey, 
        param: ParamToObj(url),
        defaultUrl: url })
    // console.log('暂不支持 call')
}



